/**
 * Copyright (c) 快宝网络 kuaidihelp.com Co., Ltd. All Rights Reserved 禁止外泄以及用于其它的商业用途
 */

import request from '@/utils/request';

// 获取巴枪配置信息
export async function getConInfo(params) {
  return request('/v1/TotalDistribution/GunInformation/getConInfo', {
    method: 'POST',
    body: params,
  });
}

// 获取网点编号、名称
export async function getBranchInfo(params) {
  return request('/v1/TotalDistribution/ExpressCompanyInfo/getBranchInfo', {
    method: 'POST',
    body: params,
    nonceKey: 'branch_id,area_id',
  });
}

// 巴枪配置
export async function userConfig(params) {
  return request('/v1/TotalDistribution/GunInformation/userConfig', {
    method: 'POST',
    body: params,
  });
}

// 删除巴枪配置
export async function removeInfo(params) {
  return request('/v1/TotalDistribution/GunInformation/removeInfo', {
    method: 'POST',
    body: params,
  });
}
